package com.zls.service;

import java.sql.SQLException;
import java.util.List;

import com.zls.dao.ProductDaoImpl;
import com.zls.model.ProductModel;

public class ProductService {

	private ProductDaoImpl dao=new ProductDaoImpl();
	
	public  List<ProductModel> getAll() {
		return dao.getAll();
	}
	
	public int insertProductInfo(ProductModel model) {
		return dao.insertProductByInfo(model);
	}
	
	public int updateProductInfo(ProductModel model) {
		return dao.updateProductInfo(model);
	}
	
	public int deleteProductById(int id) {
		return dao.deleteProductById(id);
	}
}
